<?php
 include "babs.php";
 $pixboxname=$_GET[0];
 $pixboxpath="../media/pixbox/$pixboxname/";
 $settings=array('','','','width:1em;');
 $pix=btag(bdir($pixboxpath),'bimg',$pixboxpath);
?>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script src="../js/galleria/galleria-1.2.2.min.js"></script>
</head>
<body>
<div id="gallery">
 <?php
 foreach($pix as $p){ echo $p; }
  ?>
</div>
<script>
  Galleria.loadTheme('../js/galleria/themes/classic/galleria.classic.js');
  $("#gallery").galleria({
    width: 500,
    height: 500
  });
</script>
</body>
</html>
